ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  Trim( )

Trim(String)

The Trim function removes extra blank spaces on both the right and left side of a string.

Note that HTML automatically removes extra blank spaces in this view.

Code:
<% =Trim("   A sentence with extra spaces on both sides.    ") %>

Output:
A sentence with extra spaces on both sides.